package com.undsf.util;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Arathi on 2015/10/20.
 */
public class Block {
    private String name; //名称
    private int index; //起始行索引
    //private int rowNum; //行数
    private int colNum; //列数

    private List<Value> rows;

    public Block(String name, int index){
        this.name = name;
        this.index = index;
        rows = new ArrayList<>();
    }

    public String getName(){
        return name;
    }

    public int getIndex() {
        return index;
    }

    public int getRowNum() {
        return rows.size();
    }

    public int getColNum() {
        return colNum;
    }

    public void addRow(Value row) {
        rows.add(row);
    }
}
